﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IDML.BusinessObject;
using IDML.BusinessLogic;


namespace IDML.Web.Modules.Patient
{
    public partial class PatientSearch : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
               
            }

        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
              PatientBO patientBO;
            PatientBL patientBL;

            try
            {
                patientBO = new PatientBO();
                patientBL = new PatientBL();

                patientBO.FirstName = txtFirstName.Text;
                patientBO.LastName = txtLastName.Text;
                patientBO.SpecimenNo = txtSpecimenNo.Text;
                patientBO.PhoneNumber = txtPhoneNumber.Text;
                gwPatientSearch.DataSource = null;
                gwPatientSearch.DataSource = patientBL.Patient_Search(patientBO);
                gwPatientSearch.DataBind();
            }      
            catch (Exception ex)
            {
                throw ex;
            }


        }
    }
}